package com.zygh.questionnairesurvey.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@ApiModel(value = "UserInfoVO", description = "")
public class UserInfoVO implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "用户名")
    private String userName;


    @ApiModelProperty(value = "部门名称")
    @TableField(exist = false)
    private String deptName;

    @ApiModelProperty(value = "问题个数统计")
    @TableField(exist = false)
    private Integer count;

    @ApiModelProperty(value = "问题个人详情个数统计")
    @TableField(exist = false)
    private Integer countDetail;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "父级部门id")
    private Integer pid;

    @ApiModelProperty(value = "父级部门名称")
    @TableField(exist = false)
    private String pName;

    @ApiModelProperty(value = "民警  1：领导班子   3：工勤人员")
    @TableField(exist = false)
    private String termName;

    @ApiModelProperty(value = "是否为管理员(0:否  1：是)")
    private Boolean isSuperadmin;
}